package com.chen.shopping_order_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.shopping_common.pojo.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrdersMapper extends BaseMapper<Orders> {

    //根据id查询订单详情
    Orders findById(String id);

    //查询用户下的订单详情
    List<Orders> findByUser(@Param("userId") Long userId, @Param("status") Integer status);

}